import Layout from '@/views/layout/Layout'

const systemRouter = {
  path: '/system',
  component: Layout,
  redirect: '/system/setsite',
  name: 'System',
  meta: {
    title: '系统',
    icon: 'star'
  },
  children: [{
    path: 'setsite',
    name: 'Setsite',
    component: () =>
      import('@/views/system/setsite'),
    meta: {
      title: '站点设置'
    }
  },
  {
    path: 'setuser',
    name: 'Setuser',
    component: () =>
      import('@/views/system/setuser'),
    meta: {
      title: '用户设置'
    }
  },
  {
    path: 'add-zhuti',
    name: 'Add-zhuti',
    component: () =>
      import('@/views/system/components/setsite/zhuti'),
    meta: {
      title: '主题管理'
    }
  },
  {
    path: 'role',
    name: 'Role',
    component: () =>
      import('@/views/system/role'),
    meta: {
      title: '角色管理'
    }
  },
  {
    path: 'menu',
    name: 'Menu',
    component: () =>
      import('@/views/system/components/setsite/menu'),
    meta: {
      title: '菜单管理'
    }
  },
  {
    path: 'setcourse',
    name: 'Setcourse',
    component: () =>
      import('@/views/system/setcourse'),
    meta: {
      title: '课程设置'
    }
  },
  {
    path: 'setoperate',
    name: 'Setoperate',
    component: () =>
      import('@/views/system/setoperate'),
    meta: {
      title: '运营设置'
    }
  },
  {
    path: 'setbill',
    name: 'Setbill',
    component: () =>
      import('@/views/system/setbill'),
    meta: {
      title: '账务设置'
    }
  },
  {
    path: 'wechatSet',
    name: 'WechatSet',
    component: () =>
      import('@/views/system/wechatSet'),
    meta: {
      title: '微信配置'
    }
  },
  {
    path: 'optsystem',
    name: 'Optsystem',
    component: () =>
      import('@/views/system/optsystem'),
    meta: {
      title: '系统优化'
    },
    hidden: true
  },
  {
    path: 'blacklist',
    name: 'Blacklist',
    component: () =>
      import('@/views/system/blacklist'),
    meta: {
      title: 'IP黑名单'
    }
  },
  {
    path: 'setpost',
    name: 'Setpost',
    component: () =>
      import('@/views/system/setpost'),
    meta: {
      title: '发帖限制设置'
    }
  },
  {
    path: 'selfcheck',
    name: 'Selfcheck',
    component: () =>
      import('@/views/system/selfcheck'),
    meta: {
      title: '系统自检'
    },
    hidden: true
  },
  {
    path: 'systemlog',
    name: 'Systemlog',
    component: () =>
      import('@/views/system/systemlog'),
    meta: {
      title: '系统日志'
    },
    hidden: true
  },
  {
    path: 'email',
    name: 'Email',
    component: () =>
      import('@/views/system/components/emailpage/email'),
    meta: {
      title: '邮件'
    },
    hidden: true
  },
  {
    path: 'distribution',
    name: 'Distribution',
    component: () =>
      import('@/views/system/components/coursedistribution/distribution'),
    meta: {
      title: '课程分销'
    },
    hidden: true
  },
  {
    path: 'attestation',
    name: 'Attestation',
    component: () =>
      import('@/views/system/attestation'),
    meta: {
      title: '认证设置'
    },
    hidden: true
  }
  ]
}
export default systemRouter
